/**
 * 仪器监测项关联管理
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.bcDeviceMonitorParam',['water.common.AJAXService']);
	
	module.service('$bcDeviceMonitorParamService',function($AJAXService){
				
		/**
		 * 获取仪器关联的参数
		 */
		this.getListByDevice = function(deviceId){
			var promise = $AJAXService.post("/BcDeviceMonitorParam/getListByDevice",{deviceID:deviceId});
			return promise;
		}
		
		/**
		 * 获取站点的所有参数
		 */
		this.getListByStation = function(deviceId){
			var promise = $AJAXService.post("/BcDeviceMonitorParam/getListByStation",{deviceID:deviceId});
			return promise;
		}
		
		/**
		 * 新建
		 */
		this.create = function(model){
			var promise = $AJAXService.post("/BcDeviceMonitorParam/create",model);
			return promise;
		}
		
		/**
		 * 编辑
		 */
		this.update = function(model){
			var promise = $AJAXService.post("/BcDeviceMonitorParam/update",model);
			return promise;
		}
		
		/**
		 * 删除
		 */
		this.deleteModel = function(model){
			var promise = $AJAXService.post("/BcDeviceMonitorParam/delete",model);
			return promise;
		}
		
	})
}(window, angular));